export class User {
  public id: number;
  public username: string;
  public account: string;
  public password: string;
  public sex: string;
  public age: number;
  public type: number;
  public created_time: Date;
  public updated_time: Date;
  constructor({ id, username, account, password, sex, age, type, created_time, updated_time }:{
    id:number,
    username: string,
    account: string,
    password: string,
    sex: string,
    age: number,
    type: number,
    created_time: Date,
    updated_time: Date
  }) {
    this.id = id;
    this.username = username;
    this.account = account;
    this.password = password;
    this.sex = sex;
    this.age = age;
    this.type = type;
    this.created_time = created_time;
    this.updated_time = updated_time;
  }
  get getId() {
    return this.id;
  }
  set setId(id: number) {
    this.id = id;
  }
  get getUsername() {
    return this.username;
  }
  set setUsername(username: string) {
    this.username = username;
  }
  get getAccount() {
    return this.account;
  }
  set setAccount(account: string) {
    this.account = account;
  }
  get getPassword() {
    return this.password;
  }
  set setPassword(password: string) {
    this.password = password;
  }
  get getSex() {
    return this.sex;
  }
  set setSex(sex: string) {
    this.sex = sex;
  }
  get getAge() {
    return this.age;
  }
  set setAge(age: number) {
    this.age = age;
  }
  get getType() {
    return this.type;
  }
  set setType(type: number) {
    this.type = type;
  }
  get getCreated_time() {
    return this.created_time;
  }
  set setCreated_time(created_time: Date) {
    this.created_time = created_time;
  }
  get getUpdated_time() {
    return this.updated_time;
  }
  set setUpdated_time(updated_time: Date) {
    this.updated_time = updated_time;
  }
}
